package com.dong.adapterMode.service.impl;

import com.dong.adapterMode.prepare.service.OrderService;
import com.dong.adapterMode.service.OrderAdapterService;

/**
 * @author DongJiaQi
 * @create 2023/1/3 11:19
 * @Description:
 */
public class InsideOrderServiceImpl implements OrderAdapterService {
    private OrderService orderService = new OrderService();
    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId)<=1;
    }
}
